package com.jszc.lottery.common.datatest;

import java.util.Collection;


public class ArrayUtil {
    public static <T> boolean isArrEmpty(T[] arr)
    {
        return arr == null || arr.length == 0;
    }

    public static <T> boolean isCollectionEmpty(Collection<T> col){
        return col == null || col.stream().count() == 0;
    }
}
